﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using MiniProject.Services;
using Moq;

namespace MiniProject.UnitTest.Helpers
{
    public static class FundStorageHelper {
        public const int NumberFund = 14429;

        public static async Task<FundStorage> GetInitializedFundStorageAsync() {
            var fundStorage = new FundStorage(new Mock<IPreferenceStorage>().Object);
            await fundStorage.InitializeAsync();
            return fundStorage;
        }


        public static void RemoveDatabaseFile()=>
            File.Delete(FundStorage.FundDbPath);
    }
}
